package com.dimples.dd.system.convert;

import com.dimples.dd.common.pojo.PageResult;
import com.dimples.dd.system.model.entity.SystemFileConfigDO;
import com.dimples.dd.system.model.form.FileConfigForm;
import com.dimples.dd.system.model.vo.FileConfigRespVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/8/21
 */
@Mapper(componentModel = "spring")
public interface FileConfigConvert {

    @Mapping(target = "config", ignore = true)
    SystemFileConfigDO form2Entity(FileConfigForm fileConfigForm);

    FileConfigRespVO entity2Vo(SystemFileConfigDO fileConfigDO);

    PageResult<FileConfigRespVO> entity2Page(PageResult<SystemFileConfigDO> pageResult);
}

